Miles Sound System SDK 7.2a

Q:

How can I play two HSAMPLEs from the same memory address?

A:

You don't have to do anything special to play from the same memory location in Miles - you just tell us to play two HSAMPLEs from the same memory pointer!

So, just allocate two HSAMPLEs with AIL_allocate_sample_handle and then point both at the same address with the AIL_set_sample_file, AIL_set_named_sample_file, or AIL_set_sample_info functions.

Remember that Miles reads out of your memory! So, if you want to play two HSAMPLEs (or three, or ten, etc) from the same memory location, just pass the allocate two HSAMPLES and point each one to the same address with the AIL_set_sample_file / AIL_set_sample_info family.

Next Topic (When can I free the memory I gave to MSS?)

Previous Topic (How much CPU do the various filters use?)


Group: FAQs and How Tos
Related Functions: AIL_allocate_sample_handle, AIL_set_named_sample_file, AIL_set_sample_file, AIL_set_sample_info

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.